package myjava.io;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * @author Yancy
 * @program springioctest
 * @create 2020-11-20
 */
public class FileToUnicode {

  public static void main(String[] args) {
    FileInputStream fis = null;

    String s;
    try {
      fis =
          new FileInputStream(
              "C:\\leaning_project\\springioctest\\src\\main\\java\\myjava\\io\\FileToUnicode.java");
      InputStreamReader isr = new InputStreamReader(fis);
      BufferedReader reader = new BufferedReader(isr);
      while ((s = reader.readLine()) != null) {

        System.out.println("read:" + s);
      }
      isr.close();
    } catch (IOException e) {
      e.printStackTrace();
    }
  }
}
